import http from "../../utils/http"

// pages/notify/index.ts
Page({

  /**
   * 页面的初始数据
   */
  data: {
    id: 0,
    notifyDetail: {}
  },

  onLoad({ id }) {
    this.setData({
      id
    })
    this.getNotify()
  },

  async getNotify() {
    let res = await wx.http({
      url: '/announcement/' + this.data.id
    })
    console.log(res);
    this.setData({
      notifyDetail: res.data
    })
  }

})